package com.zmn.plat.model.dto.common;

import java.io.Serializable;

/**
 * 树形展示数据对象基类
 *
 * @author qinyifeng
 * @since 2019/03/20 11:18
 */
public class TreeGridDTO<T> implements Serializable {

    /**
     * 数据查询状态结果,0-正常，非0-异常
     */
    private Integer code = 0;

    /**
     * 数据总条数
     */
    private Integer count;

    /**
     * 文本信息
     */
    private String message;

    /**
     * 数据对象
     */
    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "TreeGridDTO{" + "code=" + code + ", count=" + count + ", message='" + message + '\'' + ", data=" + data + '}';
    }
}
